<?php
namespace App\Controller;
use Think\Controller;

/**
 * 控制器基类
 * Class AbstractController
 * @package Admin\Controller
 */
class AbstractController extends Controller {

    protected function  _initialize(){
        /*
        $session_user_id=session('USER_ID');
        if(!empty($session_user_id)){
            //todo:验证访问权限
        }else{
            if(IS_AJAX){
                $this->error("您还没有登录！",U("Admin/Public/login"));
            }else{
                redirect(U("Admin/Public/login"));
                exit();
            }
        }
        */
    }

}